package dbms.check;

import dbms.Debug;
import dbms.server.DbmsServer;

public class CheckTable {
	String table;
	
	public CheckTable (String name) {
		table = name;
	}
	
	public boolean HasTable () {
		return DbmsServer.masterPage.tableMap.containsKey(table);
	}

	public void check() {
		if (!HasTable()) Debug.Error("Table:" + table + "does not exists!");
	}
}
